package dao

import (
	"zg3zk3/inits"
	"zg3zk3/model"
)

func CreateFocus(followId int, userId int) (err error) {
	result := &model.Follow{
		UserId:   userId,
		FollowId: followId,
	}
	if err = inits.DB.Create(&result).Error; err != nil {
		return err
	}
	return nil
}
